/**
 * 获取园区位置
 */
export const getParkPositionStr = (parkBuildingName: string, parkBuildingAreaName: string, parkBuildingFloorName: string, parkBuildingRoomName: string) => {
  let positionStr = '';
  if (parkBuildingName) {
    positionStr = parkBuildingName + '-';
  }
  if (parkBuildingAreaName) {
    positionStr += parkBuildingAreaName + '-';
  }
  if (parkBuildingFloorName) {
    positionStr += parkBuildingFloorName + '-';
  }
  if (parkBuildingRoomName) {
    positionStr += parkBuildingRoomName;
  }
  // 如果positionStr最后一个字符是'-',则去掉
  if (positionStr.length > 0 && positionStr[positionStr.length - 1] === '-') {
    positionStr = positionStr.slice(0, positionStr.length - 1);
  }
  return positionStr;
};
